package models;
 
import java.util.*;
import javax.persistence.*;
 
import play.db.jpa.*;
 
@Entity
public class ObjectLevelItem extends Model {
 
    public Date createdOn;
    public String name;
	public String description;
	public int capacity;
    public Double price;
    public Date deletedOn;

    public int top;
    public int left;
    public int width;
    public int height;
    public int zOrder;
    
    @ManyToOne
    public User createdBy;

    @ManyToOne
    public User deletedBy;

    @ManyToOne
    public ObjectLevel objectLevel;
    
    public ObjectLevelItem(String name, String description, int capacity) {
        this.name = name;
		this.description = description;
		this.capacity = capacity;
    }

    @Override
    public String toString() {
        return this.name+" ("+this.description+")";    //To change body of overridden methods use File | Settings | File Templates.
    }
}